package com.app.service.impl;

import com.app.mapper.NoticeMapper;
import com.app.mapper.PointOutMapper;
import com.app.model.NoticeModel;
import com.app.model.PermissionModel;
import com.app.model.PointOutModel;
import com.app.service.NoticeService;
import com.app.service.PointOutService;
import com.app.util.StringTool;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Primary
public class PointOutServiceImpl implements PointOutService {
    @Autowired
    PointOutMapper pointOutMapper;


    @Override
    public PointOutModel getModel() {
        List<PointOutModel> modelList =  pointOutMapper.selectList(null);
        return modelList.get(0);
    }

    @Override
    public void update(PointOutModel model) {
        pointOutMapper.updateById(model);

    }
}
